<template>
  <div>
    <router-view></router-view>
    <button @click="$store.num++">{{ $store.num }}</button>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  mounted() {
    console.log(this.$store.titleName);
  }
}
</script>
<style>
div {
  border: solid;
  padding: 10px;
}
</style>